package hotel.compare.oversea.service;

import hotel.base.oversea.service.BaseService;
import hotel.compare.oversea.entity.master.SpiderHotelLog;

import java.util.List;
import java.util.concurrent.ExecutionException;

/**
 * 爬取携程酒店记录
 *
 * @author Zhang·JZ
 * @date 2020-05-28
 */
public interface SpiderHotelLogService extends BaseService<SpiderHotelLog> {

    /**
     * 爬取已创建的就带你，判断携程酒店是否有代理
     * @return
     */
    boolean tripSpiderHotelAgentByIsCreate(List<SpiderHotelLog> spiderHotelLogList) throws InterruptedException, ExecutionException;


    /**
     * 爬取已创建的就带你，判断携程酒店是否有代理
     * @return
     */
    boolean tripSpiderHotelAgentByIsCreateOld(List<SpiderHotelLog> spiderHotelLogList) throws InterruptedException, ExecutionException;

}
